<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>

<html>

  <head>
    <title><s:text name="purchasersaction.title"/></title>
  </head>

  <body>

    <p class="wwPageTitle">
      <img src="<s:url value='/images/purchaser.gif'/>"/>
      <s:text name="purchasersaction.details"/>
    </p>

    <s:actionerror />
    <s:actionmessage/>
    <s:fielderror />

    <s:form action="purchasers/list"
            method="POST"
            cssClass="wwFilterTable">

      <tr>
        <th colspan="2">
          <s:text name="purchasersaction.details"/>
        </th>
      </tr>

      <s:label key="purchasersaction.id"
               value="%{model.id}" />

      <tr>
        <td class="tdLabel">
          <s:label key="purchasersaction.name"
                   theme="simple"
                   cssClass="label" />:
        </td>
        <td>
          <s:property value="%{nameHTML}" escape="false"/>
        </td>        
      </tr>

      <tr>
        <td class="tdLabel">
          <s:label key="purchasersaction.address"
                   theme="simple"
                   cssClass="label" />:
        </td>
        <td>
          <s:property value="%{addressHTML}" escape="false"/>
        </td>        
      </tr>

      <s:label key="purchasersaction.nip"
               value="%{model.nip}" />

      <tr>
        <td colspan="2" class="wwFilterTableButtonBar">
          <s:submit key="button.back" cssClass="inputButton" theme="simple" action="purchasers/list" />
        </td>
      </tr>

    </s:form>

  </body>

</html>
